import Vuex from 'vuex'
import user from './modules/user.js'
import Vue from 'vue'
Vue.use(Vuex)

const store = new Vuex.Store({
  getters: {
    user: state => state.user.user,
    token: state => state.user.token
  },
  modules: {
    user
  }
})

export default store
